<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <%@include file="../common/head.jspf" %>
    </head>

    <body class="sb-l-o sb-r-c" data-menu="#menu_enterprise" data-list="#li_enterprise_list">

        <!-- 主体内容开始 -->
        <div id="main">

            <!--侧边导航栏-->
            <%@include file="../common/sidebar.jspf" %>

            <!-- Start: Content-Wrapper -->
            <section id="content_wrapper">

                <!-- 顶部导航 -->
                <header id="topbar">
                    <div class="topbar-left">
                        <ol class="breadcrumb">
                            <li class="crumb-active">
                                <span>软擎科技</span>
                            </li>
                            <li class="crumb-icon">
                                <a href="dashboard"><span class="glyphicon glyphicon-home"></span></a>
                            </li>
                            <li class="crumb-icon">
                                <a href="enterprise/list">企业列表</a>
                            </li>
                            <!-- 当前页 -->
                            <c:choose>
                                <c:when test="${model != null}">
                                    <li class="crumb-trail">编辑企业</li>
                                    </c:when>
                                    <c:otherwise>
                                    <li class="crumb-trail">添加企业</li>
                                    </c:otherwise>
                                </c:choose>
                        </ol>
                    </div>
                    <div class="topbar-right">
                        <!-- 登录信息 -->
                        <%@include file="../common/session.jspf" %>
                    </div>
                </header>
                <!-- 顶部导航结束 -->

                <!-- 页面内容开始 -->
                <section id="content">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="mw500 mauto p10">
                                <c:choose>
                                    <c:when test="${model != null}">
                                        <h1 class="text-center text-muted-lighter mb20"><i class="fa fa-pencil-square-o mr5"></i>编辑企业</h1>
                                    </c:when>
                                    <c:otherwise>
                                        <h1 class="text-center text-muted-lighter mb20"><i class="fa fa-plus-square mr5"></i>添加企业</h1>
                                    </c:otherwise>
                                </c:choose>
                                <form class="form-horizontal gulangyu-form admin-form" role="form" id="enterpriseForm" novalidate>
                                    <input type="hidden" name="userId" value="${model}" />
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">登录名</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="loginName"
                                                   id="loginName"
                                                   required
                                                   placeholder="2位以上字母、数字和下划线组合">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">企业全称</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="name"
                                                   id="name"
                                                   required
                                                   placeholder="企业全称">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">企业简称</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="shortName"
                                                   id="shortName"
                                                   placeholder="企业简称">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">组织结构代码</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="orgCode"
                                                   id="orgCode"
                                                   required
                                                   placeholder="组织结构代码">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">组织结构代码</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="bizLicense"
                                                   id="bizLicense"
                                                   required
                                                   placeholder="组织结构代码">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">税务登记号</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="taxRegNo"
                                                   id="taxRegNo"
                                                   required
                                                   placeholder="税务登记号">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="input-group">
                                            <span class="input-group-addon">开户银行许可证</span>
                                            <input class="form-control" 
                                                   type="text" 
                                                   name="bankLicense"
                                                   id="bankLicense"
                                                   placeholder="开户银行许可证">
                                            <span class="append-icon right"><i class="fa fa-check"></i></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <button type="button" class="btn btn-primary btn-block" id="saveEnterpriseBtn">保存企业</button>
                                    </div>
                                    <div class="text-right">
                                        <a href="enterprise/list">返回企业列表</a>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </section>
                <!-- 页面内容结束 -->

            </section>
        </div>
        <!-- 主体内容结束 -->

        <!-- 公共函数 -->
        <%@include file="../common/scripts.jspf" %>
        <script type="text/javascript" src="${rootPath}/js/admin-tools/admin-forms/js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${rootPath}/js/admin-tools/admin-forms/js/additional-methods.min.js"></script>
        <script type="text/javascript" src="${rootPath}/js/pages/enterprise/edit.js"></script>
    </body>
</html>